package com.zjuh.taofood.biz.dao.ibatis;

import com.zjuh.taofood.biz.dao.TopicTradeRateDAO;
import com.zjuh.taofood.biz.domain.TopicTradeRateDO;


public class TopicTradeRateDAOIbatis extends BaseIbatisDAO implements TopicTradeRateDAO  {

	public long create(TopicTradeRateDO topicTradeRate) {
		return (Long)this.getSqlMapClientTemplate().insert("TopicTradeRateDAO.create", topicTradeRate);
	}

	public void delete(long id) {
		this.getSqlMapClientTemplate().update("TopicTradeRateDAO.delete", id);
	}

	public void update(TopicTradeRateDO topicTradeRate) {
		this.getSqlMapClientTemplate().update("TopicTradeRateDAO.update", topicTradeRate);
	}

	public TopicTradeRateDO queryById(long id) {
		return (TopicTradeRateDO)this.getSqlMapClientTemplate().queryForObject("TopicTradeRateDAO.queryById", id);
	}
	
}
